package com.longcai.piaojia.dialog;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.longcai.piaojia.R;

/**
 * Created by Administrator on 2016/11/8.
 */
public abstract class RegistSuccessDialog extends BaseDialog {


    public RegistSuccessDialog(Context context, String message) {
        super(context);

        setContentView(R.layout.dialog_regist_success);

        ((TextView) findViewById(R.id.dialog_regist_success_coupon_tv)).setText(message);

        View.OnClickListener listener = new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                onConfirm();

            }
        };



        findViewById(R.id.dialog_regist_success_confirm_iv).setOnClickListener(listener);


    }


    protected abstract void onConfirm();

}
